package com.junjie.dao;

import com.junjie.entity.Apartment;

import java.util.List;

public interface ApartmentDao {

    //公寓信息查询万能接口
    List<Apartment> getApartment(Apartment apartment);

    //查询一条公寓的信息
    Apartment getOneApartment(Apartment apartment);

    //增加一条公寓信息
    int addApartment(Apartment apartment);

    //修改该一条公寓信息
    int updateApartment(Apartment apartment);

    //删除一条公寓信息
    int deleteApartment(Integer id);

}
